package com.carleasoft.mps.cms.business.article.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author yanghao
 * @date 2021-12-14 09:34
 * @project mps
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "c_cms_category")
public class AuthorityCategoryEntity {

    /**
     * id
     */
    @TableId(value = "ID",type = IdType.AUTO)
    private String id;

    /**
     * 栏目编码
     */
    @TableField(value = "CATEGORY_CODE")
    private String categoryCode;

    /**
     *栏目名称
     */
    @TableField(value = "CATEGORY_NAME")
    private String categoryName;

    /**
     * 站点编码
     */
    @TableField(value = "SITE_CODE")
    private String siteCode;

    /**
     * 上级栏目
     */
    @TableField(value = "PARENT_CODE")
    private String parentCode;

    /**
     * 内容模型
     */
    @TableField(value = "CONTENT_MODEL")
    private Integer contentModel;

    /**
     * 外部链接
     */
    @TableField(value = "HREF")
    private String href;

    /**
     * 序号
     */
    @TableField(value = "WEIGHT")
    private Integer weight;

    /**
     * 状态
     */
    @TableField(value = "STATUS")
    private Integer status;

    /**
     * 全路徑
     */
    @TableField(value = "FULL_PATH")
    private String fullPath;
    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;


    /**
     * 修改人
     */
    @TableField(value = "UPDATE_BY")
    public String updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    public LocalDateTime updateTime;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY")
    public String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    public LocalDateTime createTime;

    /**
     * 图片路径
     */
    @TableField(value = "IMAGE_PATH")
    private String imagePath;
}
